using System;
using System.Diagnostics;
using PLCComponent;
using SukiUI.Controls;
using SukiUI.Dialogs;
using SysLog;
using UI.Views.component;

namespace UI.Views;

public partial class MainWindow : SukiWindow
{
    public static ISukiDialogManager DialogManager = new SukiDialogManager();
    public MainWindow()
    {
        // I18n.Resources.Culture = SukiTheme.GetInstance().Locale;
        ILog.writeInfo("hello info....");
        InitializeComponent();
        DialogHost.Manager = DialogManager; 
    }
    
    private void HandleCustomClick(object? sender, EventArgs e)
    {
        if (sender is UserLogin control)
        {
            Console.WriteLine($"Button clicked! Title: {control.Title}" + "Main window clicked....");
        }
    }
}
